package com.xs.project.service;

import com.xs.project.common.Result;
import com.xs.project.pojo.vo.CourseReq;
import com.xs.project.pojo.vo.LoginReq;
import com.xs.project.pojo.vo.SubExamTitle;
import com.xs.project.pojo.vo.SubExamTitleReq;
import com.xs.project.pojo.vo.resp.*;

import java.util.List;

public interface LoginService {
    Result<UserInfoResp> login(LoginReq req);

    Result<Boolean> register(LoginReq req);

    Result<Boolean> resPassword(LoginReq req);

    Result<List<CourseVo>> getCourseList(CourseReq req);

    Result<List<CourseVo>> getHotCourseList(CourseReq req);

    Result<CourseDetailVo> getCourseDetail(String courseId,String userId);

    Result<ExamVo> getExamDetail(String examId);

    Result<Boolean> subExamDetail(SubExamTitleReq req);

    Result<String> emailCode(String emailNum);

    Result<Integer> getExamIdByUserId(String userId);

    Result<Boolean> saveHomeWork(HomeWorkVo courseResourceVo);

    Result<String> getExamRes(String userId);
}
